<template>
  <div class="add-task">
  
  </div>
</template>

<script setup lang="ts">

import { useCreateTaskStore } from "../store/createTaskStore";

const dataEvent = (data: any) => {
  console.log("子组件收到数据了", data);
}

defineExpose({
  dataEvent
})

// 2. 实例化组合式 store
const createTaskStore = useCreateTaskStore();

// 验证存储结果
console.log("存储后 Pinia 中的值111：", createTaskStore.sendCreateTaskCmd);

</script>

<style lang="scss" scoped>
.add-task {
  height: 100%;
}
</style>
